Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove restriction from publish snapshot script that jars must end in -SNAPSHOT.jar. #1188

Merged
merged 1 commit into from
Nov 30, 2021

Conversation

mch2
Copy link
Member

@mch2 mch2 commented Nov 30, 2021

Signed-off-by: Marc Handalian [email protected]

Description

Remove restriction from publish snapshot script that jars must end in -SNAPSHOT.jar.

The reason this was introduced in the first place was because of #447, the build-tools publication includes an additional test-fixtures jar that would sometimes get picked up and deployed instead of the actual build-tools jar. To account for this, this will look for a jar named test-fixtures and exclude it.

Uploading: ./gradle/build-tools/2.0.0-SNAPSHOT/build-tools-2.0.0-SNAPSHOT.jar with ./gradle/build-tools/2.0.0-SNAPSHOT/build-tools-2.0.0-SNAPSHOT.pom to 
Skipping upload for ./gradle/build-tools/2.0.0-SNAPSHOT/build-tools-2.0.0-SNAPSHOT.module
Skipping upload for ./gradle/build-tools/2.0.0-SNAPSHOT/maven-metadata-local.xml
Finished uploading ./gradle/build-tools/2.0.0-SNAPSHOT

This is only necessary because we are deploying pre-built artifacts directly with the deploy-file plugin, it is not a problem if both of those files were to get deployed with a normal gradle publish - see #1182.

Issues Resolved

closes #1180

Check List

  • [x ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@mch2 mch2 requested a review from a team as a code owner November 30, 2021 06:20
@codecov-commenter
Copy link

codecov-commenter commented Nov 30, 2021

Codecov Report

Merging #1188 (3c1b0f5) into main (c0490fb) will increase coverage by 0.28%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1188      +/-   ##
============================================
+ Coverage     93.49%   93.77%   +0.28%     
  Complexity       10       10              
============================================
  Files           100      105       +5     
  Lines          2551     2618      +67     
  Branches          7        9       +2     
============================================
+ Hits           2385     2455      +70     
+ Misses          158      153       -5     
- Partials          8       10       +2     
Impacted Files Coverage Δ
src/jenkins/InputManifest.groovy 58.06% <0.00%> (-4.44%) ⬇️
src/test_workflow/perf_test/perf_test_cluster.py 95.74% <0.00%> (-4.26%) ⬇️
src/run_build.py 91.30% <0.00%> (ø)
src/run_assemble.py 96.42% <0.00%> (ø)
src/manifests/test_manifest.py 100.00% <0.00%> (ø)
src/test_workflow/integ_test/local_test_cluster.py 100.00% <0.00%> (ø)
src/test_workflow/integ_test/service_opensearch.py 100.00% <0.00%> (ø)
...rkflow/integ_test/service_opensearch_dashboards.py 100.00% <0.00%> (ø)
...g_test/local_test_cluster_opensearch_dashboards.py 100.00% <0.00%> (ø)
src/paths/build_output_dir.py 100.00% <0.00%> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0490fb...3c1b0f5. Read the comment docs.

@dblock dblock requested a review from a team November 30, 2021 12:35
@dblock dblock merged commit 21a8546 into opensearch-project:main Nov 30, 2021
@mch2 mch2 deleted the publishfix branch January 3, 2022 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Snapshot build is not uploading common-utils.jar
4 participants